<!doctype html>
<html lang="zh-cn">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>{$title|default='论坛系统'}</title>
    <link rel="stylesheet" href="/static/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/css/style.css">
    <script src="/static/js/jquery-3.3.1.min.js"></script>
    <script src="/static/js/bootstrap.min.js"></script>
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button class="navbar-toggle collapsed" type="button" data-toggle="collapse" data-target=".navbar-collapse">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand hidden-sm" href="{:url('/')}">论坛系统</a>
        </div>
        <div class="navbar-collapse collapse" role="navigation">
            <ul class="nav navbar-nav navbar-right hidden-sm">
                <empty name="Think.session.user">
                    <li><a href="{:url('user/signin')}">登录</a></li>
                    <li><a href="{:url('user/signup')}">注册</a></li>
                    <else/>
                    <li><a href="{:url('/user')}">个人中心</a></li>
                    <li><a href="{:url('user/logout')}">退出登录</a></li>
                </empty>
            </ul>
        </div>
    </div>
</div>
<div class="container">{__CONTENT__}</div>
<footer class="text-center">论坛 版权所有&copy;2018</footer>
</body>
</html>